package com.ChenYaRou.www.dao;


import com.ChenYaRou.www.po.Orders;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 86183
 */
public interface OrdersDao {
    /**
     * 更新订单
     * @param  newOrder
     * @param  oldOrder
     * @return 成功与否
     * @throws IllegalAccessException
     * @throws SQLException
     */
    int update(Orders newOrder,Orders oldOrder) throws IllegalAccessException, SQLException ;


    /**
     * 增加订单
     * @param  orders
     * @return 成功与否
     * @throws  IllegalAccessException
     * @throws  SQLException
     */
    int insert(Orders orders) throws IllegalAccessException, SQLException ;

    /**
     * 查找orders集合
     * @param orders 条件orders
     * @return
     * @throws IllegalAccessException
     * @throws SQLException
     * @throws NoSuchFieldException
     * @throws InstantiationException
     */
     List<Orders> selectMore(Orders orders) throws IllegalAccessException,
            SQLException, NoSuchFieldException, InstantiationException ;
}
